
package com.joysuch.wwyt.core.service;

import java.util.List;

import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

//多查询各种表中的
public interface SimpleSelectListService {

    public Page<SimpleSelectListBean> page(Pageable pageList, Class<?> entityClass, String textFieldName)
            throws UnsupportedOperationException;

    public Page<SimpleSelectListBean> page(Pageable pageList, Class<?> entityClass, String idFieldName,
            String textFieldName) throws UnsupportedOperationException;

    public Page<SimpleSelectListBean> page(Pageable pageList, Class<?> entityClass, String idFieldName,
            String textFieldName, int maxResults) throws UnsupportedOperationException;

    public List<SimpleSelectListBean> list(Class<?> entityClass, String textFieldName)
            throws UnsupportedOperationException;

    public List<SimpleSelectListBean> list(Class<?> entityClass, String idFieldName, String textFieldName)
            throws UnsupportedOperationException;

    public List<SimpleSelectListBean> list(Class<?> entityClass, String idFieldName, String textFieldName,
            int maxResults) throws UnsupportedOperationException;
}
